package edu.bit.water.dao;

import edu.bit.water.entity.MetaStandardRequire;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface MetaStandardRequireDao {

    int insertMetaStandardRequire(MetaStandardRequire metaStandardRequire) throws DataIntegrityViolationException;
    Integer getMaxId();
    int delete(@Param("id") int id);
    int update(MetaStandardRequire metaStandardRequire);
    List<MetaStandardRequire> queryStandardRequire(MetaStandardRequire metaStandardRequire);
}
